RSA Cheat Sheet
Setup
random prime number
random prime number
(this is called the totient function)
some number smaller than that's coprime with it (shares no factors)
Calculate d with:
Public key:
Private key:
message, ciphertext
Encryption
Decryption
Signing
is signature
Verification
Verify by checking if